:loop
    adb wait-for-device
    for /F %%i in ('adb shell date +%%Y-%%m-%%d_%%H.%%M.%%S ') do (
	    set curtime=%%i
    )
    timeout /nobreak /t 13
    adb logcat -d > ZC08A_%curtime%.log
    timeout /nobreak /t 5
    adb reboot
    goto loop